<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition>       
        <h:panelGrid columns="1" rendered="#{!managedBeanBenutzer.istEingeloggt()}"> 
            <p><b><u>Login</u></b></p>
            <form method="post" action="j_security_check">
                <h:outputLabel value="Email-Adresse:"/>
                <input type="text" name="j_username"/>
                <h:outputLabel value="Passwort:"/>
                <input type="password" name="j_password"/> 
                <br/><input type="submit" name="submit" value="Login"/>
                <input type="reset" value="Reset"/>
            </form>
        </h:panelGrid>
        <h:link rendered="#{!managedBeanBenutzer.istEingeloggt()}" outcome="/faces/registrierung.xhtml" value="Registrieren" style="text-decoration: none; color: black"/><br/>
        <h:link rendered="#{!managedBeanBenutzer.istEingeloggt()}" outcome="/faces/passwortVergessen.xhtml" value="Passwort vergessen" style="text-decoration: none; color: black"/>
         <h:panelGrid columns="1" rendered="#{managedBeanBenutzer.istAdmin()}"> 
            <p><b><u>Admin</u></b></p>
        </h:panelGrid>
        <h:panelGrid columns="1" rendered="#{managedBeanBenutzer.istEingeloggt()}">
            <h:form>
                <p><b><h:commandLink action="#{managedBeanBenutzer.abmelden()}" value="Abmelden" style="text-decoration: none; color: black"/></b></p>    
            </h:form>

        </h:panelGrid>
        
       
    </ui:composition>
</html>

